<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${packageName}.mapper.${module}.${fileName}">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="${packageName}.domain.${module}.${table.className}">
        <id column="id" property="id"/>
        <id column="createBy" property="createBy"/>
        <id column="createTime" property="createTime"/>
        <id column="updateBy" property="updateBy"/>
        <id column="updateTime" property="updateTime"/>
        <id column="deleted" property="deleted"/>
        <id column="deleteTime" property="deleteTime"/>
        <id column="version" property="version"/>
        <#list table.columns as column>
        <id column="${column.field}" property="${column.javaName}"/>
        </#list>
    </resultMap>

</mapper>
